<?php
$config = include('../../public/config/config.php');
include('../../public/func/db.php');
$table = 'user';
if($_GET['id'] == 1){
	echo '<script>alert("不能删除超级管理员");window.location.href="./index.php"</script>';die;
}
$res = del($config,$table,$_GET['id']);
if($res == ''){
	echo '<script>alert("删除成功");window.location.href="./index.php"</script>';
}else{
	echo '<script>alert("删除失败");window.location.href="./index.php"</script>';
}